<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/21
 * Time: 21:18
 */

namespace Home\Common\Controller;


use Think\Controller;

class LoginedController extends CommonController
{
    public function  __construct(){
        parent::__construct();
        //检测用户是否登录
        if(!isset($_SESSION['uid'])){
//            echo 2222;die;
            $this->redirect('Home/lg/login');die;
        }
        if(method_exists($this,'__init')){
            $this->__init();
        }
    }

}